package com.shop.autoshop.pay.alipay;

import com.alipay.api.response.AlipayTradePrecreateResponse;
import com.alipay.api.response.AlipayTradeQueryResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * @version: 1.0.1
 * @author: stopboot
 * @date: 2022/07/27 11:21
 * @description: 支付示例-后端接口服务->支付宝支付 接口定义
 **/
public interface AlipayService {


    /**
    * 下单
    *
    * @param alipayCreateBean
    * @return AlipayOrderCreate
    */
    AlipayTradePrecreateResponse orderPreCreate(AlipayCreateBean alipayCreateBean);

    boolean checkSign(HttpServletRequest request);

    /**
     * 查询订单是否已支付
     * @param orderNum
     * @return
     */
    AlipayTradeQueryResponse orderQuery(String orderNum);
}
